package cn.pconline.autoclub.task;

import java.util.Date;

/**
 *
 * @author ppc
 */
public class Message {

    public static final int STATUS_SETOUT = 2;//准备发送
    public static final int STATUS_SEND = 3;//发送中
    public static final int STATUS_BACK = 5;//准备重发
    public static final int STATUS_END = 4;//发送完成
    public static final int SEND_SETOUT = 0;//未发送
    public static final int SEND_FALSE = -1; //发送失败
    public static final int SEND_OK = 1;//已发送
    private long messageDeatailId;
    private long messageId;
    private long userId;
    private String content;
    private int status;
    private int lessNum;
    private int type;
    private long createBy;
    private Date time;
    public static final int TYPE_SYS = 0;
    public static final int TYPE_CLUB_DYNA = 1;

    public long getMessageDeatailId() {
        return messageDeatailId;
    }

    public long getMessageId() {
        return messageId;
    }

    public long getUserId() {
        return userId;
    }

    public String getContent() {
        return content;
    }

    public int getStatus() {
        return status;
    }

    public void setMessageDeatailId(long messageDeatailId) {
        this.messageDeatailId = messageDeatailId;
    }

    public void setMessageId(long messageId) {
        this.messageId = messageId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getLessNum() {
        return lessNum;
    }

    public void setLessNum(int lessNum) {
        this.lessNum = lessNum;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(long createBy) {
        this.createBy = createBy;
    }

    @Override
    public String toString() {
        return "messageDetailId:" + messageDeatailId + ",messageId:" + messageId + ",type:" + type + ",createBy:" + createBy + ",userId:" + userId + ",content:" + content + ",status:" + status;
    }
}
